package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.entity.ProductAttrValueEntity;
import com.atguigu.gulimall.product.vo.AttrRespVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author shuaitao
 * @email 2482078141@qq.com
 * @date 2022-09-16 21:48:50
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils selectDetail(Map<String, Object> params, Integer catelogId, String attrType);

    void updateDetail(AttrVo attr);

    AttrRespVo getDetail(Long attrId);

    List<AttrEntity> getRelationInfo(Long attrgroupId);

    PageUtils getNoattrRelation(Map<String, Object> params, Long attrgroupId);

    List<ProductAttrValueEntity> selectBaseSpuInfoBySpuId(Long spuId);

    void updateSpuInfo(Long spuId, List<ProductAttrValueEntity> productAttrValueEntityList);
}

